home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / rettig.arc / TRSOURCE.EXE / TR_BIN.PRG < prev    next >
Text File  |  1990-10-22  |  330b  |  17 lines

  1. *********
  2. * Function : BIN
  3. * By : Tom Rettig
  4. * Placed in the public domain by Tom Rettig Associates, 10/22/1990.
  5. *********
  6.  
  7.  
  8. FUNCTION BIN
  9. * Syntax: BIN( <expN> )
  10. * Return: <expC> binary (base two) value of <expN> decimal parameter
  11. *         -1 if <expN> is negative
  12. PARAMETERS dec
  13. RETURN BASE( 2, dec )
  14. * eofunc
  15.  
  16.  
  17.